public class Test {
    public static void main(String[] args) {
        String str1 = "hello little bitter";
        int z = 0;
        String[] strs = str1.split(" ");
        for (int i = 0;i < strs.length;i++){
            System.out.println(strs[i]);
            z++;
        }
        System.out.println(z);
    }
}
